Optimal. Leaf size=73 \[ -\frac {(b c-a d)^2}{d^3 \sqrt {c+d x^2}}-\frac {2 b (b c-a d) \sqrt {c+d x^2}}{d^3}+\frac {b^2 \left (c+d x^2\right )^{3/2}}{3 d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {455, 45}
\begin {gather*} -\frac {2 b \sqrt {c+d x^2} (b c-a d)}{d^3}-\frac {(b c-a d)^2}{d^3 \sqrt {c+d x^2}}+\frac {b^2 \left (c+d x^2\right )^{3/2}}{3 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 455
Rubi steps
\begin {align*} \int \frac {x \left (a+b x^2\right )^2}{\left (c+d x^2\right )^{3/2}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(a+b x)^2}{(c+d x)^{3/2}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {(-b c+a d)^2}{d^2 (c+d x)^{3/2}}-\frac {2 b (b c-a d)}{d^2 \sqrt {c+d x}}+\frac {b^2 \sqrt {c+d x}}{d^2}\right ) \, dx,x,x^2\right )\\ &=-\frac {(b c-a d)^2}{d^3 \sqrt {c+d x^2}}-\frac {2 b (b c-a d) \sqrt {c+d x^2}}{d^3}+\frac {b^2 \left (c+d x^2\right )^{3/2}}{3 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 65, normalized size = 0.89 \begin {gather*} \frac {-3 a^2 d^2+6 a b d \left (2 c+d x^2\right )+b^2 \left (-8 c^2-4 c d x^2+d^2 x^4\right )}{3 d^3 \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 115, normalized size = 1.58
method | result | size |
risch | \(\frac {b \left (b d \,x^{2}+6 a d -5 b c \right ) \sqrt {d \,x^{2}+c}}{3 d^{3}}-\frac {a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{\sqrt {d \,x^{2}+c}\, d^{3}}\) | \(67\) |
gosper | \(-\frac {-b^{2} x^{4} d^{2}-6 a b \,d^{2} x^{2}+4 b^{2} c d \,x^{2}+3 a^{2} d^{2}-12 a b c d +8 b^{2} c^{2}}{3 \sqrt {d \,x^{2}+c}\, d^{3}}\) | \(69\) |
trager | \(-\frac {-b^{2} x^{4} d^{2}-6 a b \,d^{2} x^{2}+4 b^{2} c d \,x^{2}+3 a^{2} d^{2}-12 a b c d +8 b^{2} c^{2}}{3 \sqrt {d \,x^{2}+c}\, d^{3}}\) | \(69\) |
default | \(b^{2} \left (\frac {x^{4}}{3 d \sqrt {d \,x^{2}+c}}-\frac {4 c \left (\frac {x^{2}}{d \sqrt {d \,x^{2}+c}}+\frac {2 c}{d^{2} \sqrt {d \,x^{2}+c}}\right )}{3 d}\right )+2 a b \left (\frac {x^{2}}{d \sqrt {d \,x^{2}+c}}+\frac {2 c}{d^{2} \sqrt {d \,x^{2}+c}}\right )-\frac {a^{2}}{d \sqrt {d \,x^{2}+c}}\) | \(115\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 115, normalized size = 1.58 \begin {gather*} \frac {b^{2} x^{4}}{3 \, \sqrt {d x^{2} + c} d} - \frac {4 \, b^{2} c x^{2}}{3 \, \sqrt {d x^{2} + c} d^{2}} + \frac {2 \, a b x^{2}}{\sqrt {d x^{2} + c} d} - \frac {8 \, b^{2} c^{2}}{3 \, \sqrt {d x^{2} + c} d^{3}} + \frac {4 \, a b c}{\sqrt {d x^{2} + c} d^{2}} - \frac {a^{2}}{\sqrt {d x^{2} + c} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.99, size = 79, normalized size = 1.08 \begin {gather*} \frac {{\left (b^{2} d^{2} x^{4} - 8 \, b^{2} c^{2} + 12 \, a b c d - 3 \, a^{2} d^{2} - 2 \, {\left (2 \, b^{2} c d - 3 \, a b d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{3 \, {\left (d^{4} x^{2} + c d^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 155 vs.
\(2 (63) = 126\).
time = 0.40, size = 155, normalized size = 2.12 \begin {gather*} \begin {cases} - \frac {a^{2}}{d \sqrt {c + d x^{2}}} + \frac {4 a b c}{d^{2} \sqrt {c + d x^{2}}} + \frac {2 a b x^{2}}{d \sqrt {c + d x^{2}}} - \frac {8 b^{2} c^{2}}{3 d^{3} \sqrt {c + d x^{2}}} - \frac {4 b^{2} c x^{2}}{3 d^{2} \sqrt {c + d x^{2}}} + \frac {b^{2} x^{4}}{3 d \sqrt {c + d x^{2}}} & \text {for}\: d \neq 0 \\\frac {\frac {a^{2} x^{2}}{2} + \frac {a b x^{4}}{2} + \frac {b^{2} x^{6}}{6}}{c^{\frac {3}{2}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.53, size = 92, normalized size = 1.26 \begin {gather*} -\frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{\sqrt {d x^{2} + c} d^{3}} + \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} b^{2} d^{6} - 6 \, \sqrt {d x^{2} + c} b^{2} c d^{6} + 6 \, \sqrt {d x^{2} + c} a b d^{7}}{3 \, d^{9}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 75, normalized size = 1.03 \begin {gather*} \frac {b^2\,{\left (d\,x^2+c\right )}^2-3\,a^2\,d^2-3\,b^2\,c^2-6\,b^2\,c\,\left (d\,x^2+c\right )+6\,a\,b\,d\,\left (d\,x^2+c\right )+6\,a\,b\,c\,d}{3\,d^3\,\sqrt {d\,x^2+c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________